﻿package flow {
	import flash.display.MovieClip;
	import flow.Rotation;
	import flash.geom.Point;
	import flash.utils.setTimeout;
	import flash.events.Event;
	import caurina.transitions.Tweener;
	import flash.external.ExternalInterface;
	
	public class Flow extends MovieClip {
		private function get rot():Rotation { return _rot; }
		
		public function Flow() {
			rot.GocQuay = 300;
			
			this.addEventListener(Event.ADDED_TO_STAGE, this_addedToStage);
		}
		
		public function get DiemQuay():Point {
			return this.globalToLocal(rot.DiemQuay);
		}
		
		private function this_addedToStage(e:Event){
			stage.addEventListener(Event.RESIZE, stage_resize);
		}
		
		private function stage_resize(e:Event){
			this.x = stage.stageWidth/2;
			this.y = (stage.stageHeight+30)/2;
		}
	}
}
